<div class="box2">
    <h2>手机管理</h2>
    <a href="?c=mobile&a=create" class="add">手机录入</a>
    <table cellspacing="0">
        <tr>
            <th>编号</th>
            <th>手机型号</th>
            <th>自定义唯一码</th>
            <th>手机唯一码</th>
            <th>操作系统</th>
            <th>状态</th>
            <th>借用人</th>
            <th>借用时间</th>
            <th>应归还日期</th>
        </tr>

        <?php foreach ($data as $key => $item) { ?>
        <tr>
            <td><?= $item['id'] ?></td>
            <td><?= $item['models'] ?></td>
            <td><?= $item['unique_number'] ?></td>
            <td><?= $item['mobile_unique_number'] ?></td>
            <td><?= \app\models\Mobile::os($item['os']) ?></td>
            <td><?= \app\models\Mobile::status($item['status']) ?></td>
            <td><?= $item['borrow_user'] ?></td>
            <td><?= $item['borrow_time'] ?></td>
            <td><?= $item['should_return_time'] ?></td>
        </tr>
        <?php } ?>
    </table>
    <?= $pagination->render() ?>
</div>